//
//  HJSwichView.m
//  KaiChat
//
//  Created by lx on 2023/11/16.
//

#import "HJSwichView.h"

@implementation HJSwichView {
    UIButton * __weak _markButton;
    
}

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        UIButton *markButton = [UIButton addToView:self];
        [markButton addTarget:self action:@selector(didClickMarkButton) forControlEvents:UIControlEventTouchUpInside];
        _markButton = markButton;
    }
    return self;
}


- (void)didClickMarkButton {
    [self sendActionsForControlEvents:UIControlEventValueChanged]; // 手动触发UIControlEventValueChanged事件

}
- (void)layoutSubviews {
    [super layoutSubviews];
    
    _markButton.frame = self.bounds;
}


@end
